﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using ServiceBase;

namespace ServiceMatrix
{
    public class Pick_Matrix
    {
        public static Bitmap[] ByBitmapList(Bitmap[] list)
        {
            Dictionary<string, Bitmap> dic = new Dictionary<string, Bitmap>();
            List<Bitmap> temp = new List<Bitmap>();
            foreach (Bitmap bmp in list)
            {
                string str = Builder_Matrix.Bitmap2Str(bmp, ",", false);
                if (!dic.ContainsKey(str))
                {
                    dic.Add(str, bmp);
                    temp.Add(bmp);
                }
            }
            return temp.ToArray();
        }
    }
}
